<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<% String contexts = request.getContextPath();
    pageContext.setAttribute("ctx", contexts);
%>
<head>
    <link type="text/css" rel="stylesheet" href="${ctx}/css/login/article/articleCss.css"/>
    <link rel="stylesheet" href="https://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
    <script type="text/javascript" src="${ctx}/js/jquery-3.1.1.min.js"></script>
    <script type="text/javascript" src="${ctx}/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="${ctx}/js/ckeditor/ckeditor.js"></script>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

    <title>文章管理</title>
</head>
<body>

<div class="loadMain">
    <h2 class="page-header">博客文章</h2>

    <div>
        <table class="loadTable">
            <tbody>
            <tr>
                <td class="load_article_td1">标题：</td>
                <td>${articleVO.title}</td>
            </tr>
            <tr>
                <td>发布时间：</td>
                <td>
                    <fmt:formatDate value="${articleVO.publishTime}"
                                    pattern="yyyy-MM-dd HH:mm:ss"/>
                </td>
            </tr>
            <tr>
                <td>分类名:</td>
                <td>${categoryVO.categoryName }</td>
            </tr>
            <tr>
                <td>标题：</td>
                <td>
                    <c:forEach items="${articleVO.articleLabelVOs}" var="label">
                        <div class="inLine"> ${label.labelVO.labelName}</div>
                    </c:forEach>
                </td>

            </tr>
            <tr>
                <td colspan="2">
                    正文
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    ${articleVO.content}
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <button type="button" class="btn btn-info"
                            onclick="location.href='${ctx }/editArticle.action?articleId=${articleVO.articleId}'">
                        编辑
                    </button>
                    <button type="button" class="btn btn-info"
                            onclick="location.href='${ctx }/pageOfArticleByBlogData.action'">
                        返回
                    </button></td>
            </tr>
            </tbody>
        </table>
    </div>
</div>

</body>
</html>
